package cn.ggcms.cms.biz;

import java.util.List;

import cn.ggcms.cms.dao.UserTypeDao;
import cn.ggcms.cms.vo.UserType;

public class UserTypeBiz implements UserTypeDao {

	private UserTypeDao typeDao;

	public void setTypeDao(UserTypeDao typeDao) {
		this.typeDao = typeDao;
	}


	public int doAddUserType(UserType type) {
		return this.typeDao.doAddUserType(type);
	}

	public boolean doDeleteUserType(int id) {

		return this.typeDao.doDeleteUserType(id);
	}

	public boolean doUpdateUserType(UserType type) {

		return this.typeDao.doUpdateUserType(type);
	}

	public List<UserType> findUserTypeAll() {

		return this.typeDao.findUserTypeAll();
	}

	public UserType findUserTypeById(int id) {

		return this.typeDao.findUserTypeById(id);
	}

}
